import request from '@/utils/request'

export function getTopicList(type, tenantId) {
  return request({
    url: '/ops/topic/list',
    method: 'get',
    params: { type: type, tenantId: tenantId }
  })
}

export function updateTopic(data) {
  return request({
    url: '/ops/topic/update',
    method: 'post',
    data
  })
}

export function deleteTopic(id) {
  return request({
    url: '/ops/topic/delete',
    method: 'get',
    params: { id }
  })
}

